<template>
    <div class="mainbox">
        <ParentComment 
            v-if="commentData.parent"
            :parentData="commentData.parent"
        />
        {{ commentData.content }}
    </div>
</template>

<script>
    import ParentComment from "./ParentComment";
    export default {
        components: {
            ParentComment,
        },
        props: ["commentData"],
    };
</script>

<style lang="less" scoped>
    .mainbox {
        border: 1px solid #e4e4e4;
        background-color: #eee;
        margin: 10px;
        padding: 10px;
    }
</style>